using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
namespace Microsoft.Phone.Controls.Maps.ConfigService
{
	[GeneratedCode("System.Runtime.Serialization", "4.0.0.0"), DebuggerStepThrough, DataContract(Name = "RequestBase", Namespace = "http://dev.virtualearth.net/webservices/v1/common"), KnownType(typeof(MapControlConfigurationRequest))]
	internal class RequestBase : INotifyPropertyChanged
	{
		private Credentials CredentialsField;
		private string CultureField;
		private ExecutionOptions ExecutionOptionsField;
		private UserProfile UserProfileField;
		public event PropertyChangedEventHandler PropertyChanged
		{
			[MethodImpl(32)]
			add
			{
				this.PropertyChanged = (PropertyChangedEventHandler)Delegate.Combine(this.PropertyChanged, value);
			}
			[MethodImpl(32)]
			remove
			{
				this.PropertyChanged = (PropertyChangedEventHandler)Delegate.Remove(this.PropertyChanged, value);
			}
		}
		[DataMember]
		internal Credentials Credentials
		{
			get
			{
				return this.CredentialsField;
			}
			set
			{
				if (!object.ReferenceEquals(this.CredentialsField, value))
				{
					this.CredentialsField = value;
					this.RaisePropertyChanged("Credentials");
				}
			}
		}
		[DataMember]
		internal string Culture
		{
			get
			{
				return this.CultureField;
			}
			set
			{
				if (!object.ReferenceEquals(this.CultureField, value))
				{
					this.CultureField = value;
					this.RaisePropertyChanged("Culture");
				}
			}
		}
		[DataMember]
		internal ExecutionOptions ExecutionOptions
		{
			get
			{
				return this.ExecutionOptionsField;
			}
			set
			{
				if (!object.ReferenceEquals(this.ExecutionOptionsField, value))
				{
					this.ExecutionOptionsField = value;
					this.RaisePropertyChanged("ExecutionOptions");
				}
			}
		}
		[DataMember]
		internal UserProfile UserProfile
		{
			get
			{
				return this.UserProfileField;
			}
			set
			{
				if (!object.ReferenceEquals(this.UserProfileField, value))
				{
					this.UserProfileField = value;
					this.RaisePropertyChanged("UserProfile");
				}
			}
		}
		protected void RaisePropertyChanged(string propertyName)
		{
			PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
			if (propertyChanged != null)
			{
				propertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
			}
		}
	}
}
